//
//  AppDelegate.swift
//  YRSinaSwiftVersion
//
//  Created by 夜神月 on 16/4/8.
//  Copyright © 2016年 yr. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        setupAppearance()
        // 创建窗口
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        let mainVC = YRMainTableViewController()
        
        // 设置 root 控制器
        window?.rootViewController = mainVC
        window?.makeKeyAndVisible()
        
        return true
    }
    
    private func setupAppearance() {
        let barButtonItemAppearance = UIBarButtonItem.appearance()
        barButtonItemAppearance.tintColor = UIColor.orangeColor()
    }
}

